<template>
    <div class="vue-data-loading">
        <button id="findAll">查看所有</button>
        <div id="div1"></div>
    </div>
    
</template>

  <script>
        function findAll(){
            document.getElementById('findAll').onclick = function(){
                this.dataLoading = true;
                const params = {
                    'searchContent' : this.searchContent,
                }
                console.log(params);
                const ret = await this.$http.get("/info",{params,});
                document.getElementById('div1').innerText = ret;
            };
        }
    
    </script>
    